<script setup>
import { ref, onMounted } from 'vue'
import { _getAllVersion } from '@/api/AuthorizationManage/main.js'

const input3 = ref(null)

const inputChange_Ws = () => {
  const str = 'ws://' + input3.value
  localStorage.setItem('wsIp', str)
}

let tableData = ref([])
const getList = async () => {
  const res = await _getAllVersion()
  tableData.value = res.data.data
}

getList()
</script>

<template>
  <div class="authorizationManage-container">
    <div class="main">
      <div class="table">
        <div class="showTableEle2">
          <el-table :data="tableData" border style="width: 100%" show-overflow-tooltip>
            <el-table-column prop="name" label="模块" />
            <el-table-column prop="version" width="280" label="版本号" />
          </el-table>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.authorizationManage-container {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  font-size: 14px;
}

.main {
  width: 600px;
  height: 500px;
  margin: 20px;
}

.item {
  height: 40px;
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.btn {
  padding: 2px 10px 2px 10px;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  height: 30px;
  width: 80px;
  line-height: 30px;
  text-align: center;
  color: white;
  background-color: rgb(19, 117, 209);
}
</style>
